package com.yjd.pub.funds.dao.impl;

import org.springframework.stereotype.Component;
import com.yjd.comm.base.dao.impl.BaseDaoImpl;
import com.yjd.comm.funds.model.RechargeOrderModel;
import com.yjd.pub.funds.dao.IRechargeOrderDao;

import java.util.Map;

/**
 * <b>description</b>：充值订单表数据访问层 <br>
 * <b>time</b>：2017-09-19 15:40:05 <br>
 * <b>author</b>： carl
 */
@Component("rechargeOrderDao")
public class RechargeOrderDaoImpl extends BaseDaoImpl implements IRechargeOrderDao {

	private static final String SQLMAPNAMESPACE = RechargeOrderModel.class.getName();
	private static final String PKNAME = "order_id";

	@Override
	public String getPrimaryKeyName() {
		return PKNAME;
	}

	@Override
	public String getSqlmapNamespace() {
		return SQLMAPNAMESPACE;
	}

	@Override
	public Double querySumPayPrice(Map param) throws Exception {
		return (Double) this.getSqlMap(true).queryForObject(this.getStatement("querySumPayPrice"),param);
	}
}
